s='helloworld'
for i in range(0, len(s)):
    print(i, s[i])

print('------------------------------')

# 反向递减
for i in range(-10, 0):
    print(i, s[i])